Skip to content

Commit 979fc33

Browse files
author
Ivica Batinic
committedJan 25, 2018
Update build process
1 parent 082bac5 commit 979fc33

File tree

7 files changed

+4473
-6201
lines changed

7 files changed

+4473
-6201
lines changed
 

‎.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": [
3+
"transform-es2015-modules-commonjs",
4+
"transform-es2015-block-scoping",
5+
"transform-es2015-template-literals"
6+
]
7+
}

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# Created by https://www.gitignore.io/api/node,windows,osx,linux
23

34
### Node ###

‎bin/build.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const path = require('path');
77
// Read version from the normalize.css package and write it in our package.json
88
const normalizePackage = JSON.parse(fs.readFileSync('./node_modules/normalize.css/package.json', 'utf8'));
99

10-
const normalizeVersion = normalizePackage.version;
10+
// const normalizeVersion = normalizePackage.version;
1111

1212
const data = fs.readFileSync('./package.json', 'utf8');
1313
const package = JSON.parse(data);
14-
package.version = normalizeVersion;
14+
// package.version = normalizeVersion;
1515

1616
fs.writeFileSync('./package.json', JSON.stringify(package, null, 2));
1717

@@ -23,4 +23,4 @@ const normalize = readStream.replace(regex, '').replace(/^\s*\n/gm, '');
2323

2424
const contents = `import {css} from 'emotion';\n\nconst normalize = css\`\n${normalize}\`;\n\nexport default normalize;`;
2525

26-
fs.writeFileSync('./index.js', contents);
26+
fs.writeFileSync('./src/index.js', contents);

0 commit comments

Comments
 (0)
Please sign in to comment.