Skip to content

Commit

Permalink
fix: Cross-platform change to postinstall
Browse files Browse the repository at this point in the history
chore: changed postinstall to correct filepath

fix: Actually copying files

chore: Travis testing

chore: more travis

chore: travis

chore: Removed unnecessary Travis commands

refactor: Changed copySync to relative path

Added cross-platform to gitignore, opening a PR in npm-scripts to add the cross-platform script

chore: Changed pathing to account for coming out of node_modules
  • Loading branch information
mhomolak committed Nov 8, 2016
1 parent f935db9 commit 438e69f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Empty file removed npm_scripts/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions npm_scripts/cross-platform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const fs = require('fs-extra');

try {
fs.copySync(__dirname, './npm_scripts')
console.log('success');
} catch (err) {
console.error(err)
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ci": "node ./npm_scripts/ci.js",
"release": "node ./npm_scripts/release.js",
"verify": "node ./npm_scripts/verify.js",
"postinstall": "cp ./node_modules/@pearson-components/npm-scripts/npm_scripts/*.js ./npm_scripts"
"postinstall": "node ./node_modules/@pearson-components/npm-scripts/npm_scripts/cross-platform.js"
},
"author": "",
"license": "MIT",
Expand Down Expand Up @@ -45,11 +45,13 @@
"expect": "~1.18.0",
"expect-jsx": "~2.5.1",
"file-loader": "~0.8.5",
"fs-extra": "^0.30.0",
"ignore-styles": "~5.0.1",
"intl": "~1.1.0",
"jsdom": "~8.5.0",
"json-loader": "~0.5.4",
"mocha": "~2.4.5",
"node-fs-extra": "^0.8.1",
"node-sass": "~3.7.0",
"pearson-elements": "^0.12.0",
"react": "^15.0.0",
Expand Down

0 comments on commit 438e69f

Please sign in to comment.